package com.br.sistema.model;

import java.io.Serializable;
import java.util.Date;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="cliente")
@SequenceGenerator(name="SeqCliente", sequenceName="s_cliente", allocationSize = 1)
public class Cliente implements Serializable {
	
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SeqCliente")
	@Column(name = "cCliente", nullable = false)
	private Integer id;

	@Column(name = "fantasia", length = 20, nullable = false)
	private String fantasia;
	
	@Column(name = "razao", length = 50, nullable = false)
	private String razao;
	
	@Column(name = "cnpj", length = 14, unique = true,  nullable = false)
	private String cpnj;
	
	//#@Column(name = "cpf", length = 11, unique = true,  nullable = false)
    //private String cpf;
	
	@Column(name = "ie", length = 20)
	private String ie;
	
	@Column(name = "suframa", length = 9)
	private String suframa;
	
	@Column(name = "telefone", length = 30, nullable = false)
	private String telefone;
	
	@Column(name = "fax", length = 30)
	private String fax;
	
	@Column(name = "email", length = 50)
	private String email;
	
	@Column(name = "desativado", length = 7)
	@Temporal(TemporalType.DATE)
	private Date Desativado;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFantasia() {
		return fantasia;
	}

	public void setFantasia(String fantasia) {
		this.fantasia = fantasia;
	}

	public String getRazao() {
		return razao;
	}

	public void setRazao(String razao) {
		this.razao = razao;
	}

	public String getCpnj() {
		return cpnj;
	}

	public void setCpnj(String cpnj) {
		this.cpnj = cpnj;
	}

	public String getIe() {
		return ie;
	}

	public void setIe(String ie) {
		this.ie = ie;
	}

	public String getSuframa() {
		return suframa;
	}

	public void setSuframa(String suframa) {
		this.suframa = suframa;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getDesativado() {
		return Desativado;
	}

	public void setDesativado(Date desativado) {
		Desativado = desativado;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
		
}
